Code smell : duplicated code