Refactor the autocalls compilation