Declare build_url method as private