Extracted renaming logic to filesystem.Transformation.