Refactor PostsController#filter; format incoming data for PostsController#create