Improves layout of factors and variables.