Minor simplification of `_extend`.