Commonize code to limit functional tests to a single site each