Miguel/plugin refactor

Instead of `Array.prototype.slice.call`, use [`_.toArray()`](https://lodash.com/docs#toArray).