Refactor InitAttrs