Housekeeping in extensions.