I have a working solution with ES6 for my problem:
var {connection, connection_scope, ...extraParams} = options;
This gets connection and con