Refactored AttributesStatementSetter into a base class. refs #500, #494