Allow per-site code customizations.
(cherry picked from commit 9549562f383bba8afb3b1e94b39854779b3dfd55)