Bills trade for starting safety to bolster defense