Remove copied code from template tag libraries