I have created a new framework to prevent to write this boilerplate, for the big part: https://github.com/ricr-web/ricr