Utility functions for (factory) classes