refactor etl