Factor out byte limit label logic from edit page to utility function