Simplify code by iterating through enum values