Correctly determine scopes dependent on model's dynamic attributes