Make the PostController more DRY