maybe put it in a separate function, like ``get_rack_slug`` or something, then you can also use it in the other 2 places