generator.cs: Make binding categories easier