Refactor to reusable function for determine if IdGraphStrategy should do work or not.