Move template specific ir in their own module. Most code shouldn't see them.