Swap dependencies between registry and factory