Refactoring the creation of GEC curves