Generate FooMethods traits automatically.