Began refactoring code in inventory and recipe views