Relocate bean definitions to match application context.
Wire modules together.