Pulling out some more logic that's in common between EditUserAvatar and EditThreadAvatar.
NOTE: One more quick refactor to tidy up editAvatarOptions and then we're gooing to move UserAvatar and ThreadAvatar "inside" Edit*Avatar components instead of just passing in React.Node.