This usage of state `t` in particular sounds dangerous, it will replace variables like `%{libfoo:available}%` using the _current_ state.