Making some site-specific rules become generic