Extract Class: Extracted fragment and IO related methods and attributes into helper classes.