Removing redundant bean definitions.