refactoring post policy and view to DRY things up