Refactor POST requests to go through a common method