Extract inner interfaces
Convert the grammar rules to camel case