Factored Rope to a separate file, flattened structure a bit.