Ecological constraint theory