Refactoring and continued on glTF exporter.