Reuse existing entity IV if it's present
Abstract IV generation so we can extend and test it