Refactoring: moved `Feature` as inner class of `JSON`; easier to handle conflicting names