Clean up and refactor of micropost class method