refactoring of Mojolicious::Plugin to use Mojo::Shortcut