Moved compilation logic of interface id constructs to enterInterfaceId
and exitInterfaceId.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>