A note on codegrees and Taketa's inequality