refactoring: changed CONSTANTS of type to an ObjectType enum