Rewrite rfolder calls to a map of requires