[refactoring] Seperate method for glew init.