Refactoring Deruny receipt