Refactoring using enumeration.

This PR will introduce `enumeration` instead of `NSIntegers`.