Refactoring PostViewFactory