Refactoring books commands