Rename from_str (resp. to_str) to legislation_from_str (resp. legislation_to_str).