eligible under the Puerto Rico Highway Program shall not be subject to the requirements of sections 165(b)(2)(A) or 165(b)(2)(B) of such title: Provided further , That the funds made available under this heading for the elimination of hazards and installation of protective devices at railway-highway crossings shall be apportioned to the States as described in sections 130(f)(1) and (f)(2) of such title: Provided further , That at least one-half of the funds made available to a State under this heading for the elimination of hazards and installation of protective devices at railway-highway crossings shall be available for the installation of protective devices at railway-highway crossings: Provided further , That the funds made available under this heading for the elimination of hazards and installation of protective devices at railway-highway crossings shall be subject to the special rule described in section 130(e)(2) of such title: Provided further , That projects carried out with funds made available under this heading for the elimination of hazards and installation of protective devices at railway-highway crossings shall be (1) subject to sections 130(b), (c), and (j) of such title, (2) included in the annual report described in section 130(g) of such title, and (3) subject to the Federal share requirement described in section 130(f)(3) of such title: Provided further , That the funds made available under this heading for the elimination of hazards and installation of protective devices at railway-highway crossings shall be (1) available for matching, as described in section 130(h) of such title, subject to the requirements of such section, (2) available for incentive payments, as described in section 130(i) of such title, subject to the requirements of such section, and (3) subject to the limitation in section 130(k) of such title: Provided further , That the funds made available under this heading for a bridge replacement and rehabilitation program shall be used for highway bridge replacement or