from most of this section of NY 31E, and about of the highway runs directly alongside the waterway, which curves several times between Middleport and Medina. The two separate at the small hamlet of Shelby Basin, where the route follows a more southerly alignment into a more populated area. Not far to the east is the village of Medina, where NY 31E changes names to West Center Street. The route heads east across the residential western half of the village, passing Prospect Avenue (former NY 63) on its way into Medina's business district. NY 31E passes the village's post office and enter the Main Street Historic District, where NY 31E terminates at NY 31 and NY 63. Maintenance along the route varies by location. From the Niagara–Orleans county line to the Medina village line, NY 31E is maintained by NYSDOT. All of the route within Niagara County, excluding the state-maintained overlap with NY 271 in Middleport, is county-maintained as the unsigned County Route 143 (CR 143). In Medina, NY 31E is entirely maintained by the village, though between the village line and Prospect Avenue (former NY 63), it was NYSDOT-maintained for to its terminus at NY 31 until 2010. History In 1914, the New York State Legislature added two spur routes to Route 30, an unsigned legislative route extending from Niagara Falls in western Niagara County to Rouses Point in Clinton County via Medina. The first of these began at Route 30 (modern NY 63) and followed what is now NY 31E west to Middleport, from where it continued toward Lockport on current NY 31. On March 1, 1921, most of Route 30's Medina–Lockport spur route was supplanted by an extended Route 20. The lone exception was from Medina to Middleport, where Route 20 utilized modern NY 31 instead. When the first set of posted routes in New York were assigned in 1924, all of legislative Route 20 west of Rochester became part of NY 3. NY 3 remained on what is now NY 31 between Middleport and Medina until the 1930 renumbering of state highways in New York when it was realigned between the two villages to use what is now NY 31E. U.S. Route 104 was assigned to all of Ridge Road , replacing then-NY 31 west of Rochester. As a result, NY 31 was shifted southward onto most of NY 3 from Niagara Falls to Rochester, including