Fixed recursion issue with circular dependencies

$has_recursed was always false, so I removed it. Saw no other uses.