make Service DSL-generated classes immutable before mangling