Generators extracted to same pattern.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>