Remove recursive code from compiler