A general construction of hyperuniverses