Refactor add assets code to separate method.