ook: Minor code simplifications.