Prepare global constraints auto generation