Avoiding code bloat