In extensions, don't replace objects not belonging to the extension