Can we not use `polymorphic_url` or the already existing helpers to do this? Otherwise this is a bit of a maintenance overhead.