refactoring duplicated editor curve