refactoring attribute factory for aria attributes