Removed some legacy code from post model