Instead of having multiple locations with the same code, the web interface code now lives in its own module, and is called from multiple locations.