Remove duplicate code in asset type