I would freeze this pull request (there are only a few lines of code anyway) until we ask Vitor if he is happy with removing the redundant curves from the db and having them only in the XML,  which would look like the natural solution for the problem here.