Rebuilding leads post type declaration as class. [shared file]