move the delivery code out of SandwichController