Reduce duplication of determine method