Refactor MT::Entry::attach_assets(). bugid:111790