Text this: Three principles leading to the bell inequalities