Refactor book detail