Simple device factory (create logic gate by topmost logical operator of the function)