Miscellaneous domain-agnostic utilities.