refactor factory-related exceptions
utility class for oftenly used operations with collections