Trim upkg stuff.