Refactored the assembleBook() method to reduce its length
Small refactorization to improve the code quality related to the admonitions
Small refactorizations and tweaks to improve the code quality