Extend the Project post type
Reorder class methods for better readability
Get rid of global usage