Refactoring food input form