Refactor system package attribute setting.