Parse IDs out of generated routes