Replace several function params by one 'options' param