Change bean scopes.