Refactor LineItemsController to take advantage of inheritance