Reduce complexity of books controller #52