Refactored all lg. to flax.