Refactor implicit legacy compile