Modified grid factory to use grid options from class variables