Refactor votes create controller code