Restore ProfileFactory to previous state