def shorten_build_target(build_target: str) -> str:
    """Returns a shortened version of the build target."""
    if build_target == '//chrome/android:chrome_java':
        return 'chrome_java'

    return build_target.replace('//chrome/browser/', '//c/b/')