Update complexity script to use complexity threshold constant