Extracts local Spring Bean XML definition to the top level and assigns an
id
to it.