Remove repetitive #cycle code with helper method