removed an unnecessary bean declaration from spring configuration