Replace 'fields by 'params'
Move hardcode params such as 'path', 'operation' to format file