Refactor names and types of book model on client side