Minor resharper refactorings.
Only output classes that are actually used.