Moved admin custom post type stuff to class files and make sure they only are loaded on admin side.