Optimizing usage of projectTypeEnum