removing some code dupliation from assays controller
a little refactoring of assets_common