Refactorings on embedded relations