Replacing filesystem actions with separate class methods.