Refactoring lengths of stay ETL.