aco: add a helper for building a trap handler shader