Refactoring, introduce options json object interad of arguments in constructors