Shorten get_rail_rules