trim delegate factory