lift attribute defaults into a coderef