Merge retract/extend handlers.