Merge "Add attributes initializer helper based on flags"