Core–shell separation of a hydrogel in a large solution of proteins