apply formatter to TE3 plugin, clean up repetitive variable creation