having been previously burned when he fired a pregnant , black , muslim director in the it department who refused to use the staff elevator , doug followed barrys sage advice and avoided using age , race , religion , gender , pregnancy or performance as a basis for firing .