removing duplicate bean difinition