Implement style/source/history middleware without use of param.