Make function references as lazy as necessary.