Refactor GridSettings