Removing duplicate `if` clause in create-epub