Refactor schemas.