Refactoring and fixing epub meta