little refactoring in patient home steps