Generalized `ui-common/disabled?` fn by passing element locator

I tried to generalized `ui-common/disabled?` fn by passing element locator not the attribute. But as of now for attributes @class and @disabled. And I'm calling it in two different tests.