Changed getRefactorGroup fn to return null if not used