Refactor App::CalcURLs() as standalone and reusable.