Moving the Post classes outside the Http controller.