Change coderef module to handle whether to process