code climate reports a code smell
refactor table