Move location of `FeatureFlags` module and use `mattr_accessor`

Instead of using `self` use the idiomatic way of defining attributes on a module with `mattr_accessor`.