Auto convert nested params to 1 level params