txtinfo: simplify setup of plugin functions