Replace const NSInteger with enums.