Smarter outputting of grid helper classes. Reduces amount of code by loads