A few places in the code have something like if lang == DEFAULT_MODELING_LANGUAGE: branches which behave differently based on whether they're using Pyomo or another modeling language. This should be handled by the objects themselves - the caller should have a single path, and the variable or constraint should know how to apply that path to its own data store.