define enum methods inside a `Module` to make them overwritable.