only look up the subdomain once
remove useless to_param call

extract_subdomain always returns a string, and to_param calls to_s on a
string