  In the main result of this paper we prove that a codimension one foliation of
$\mathbb{P}^n$, which is locally a product near every point of some codimension
two component of the singular set, has a Kupka component. In particular, we
obtain a generalization of a known result of Calvo Andrade and Brunella about
foliations with a Kupka component.
