Remove dependancy of WPposttype