Simplify BaseUrl function