Split the book endpoint into node endpoint functions and an in memory book service.