DRY code

Signed-off-by: Michael Granados <michaelgranados@gmail.com>