Improving code climate by removing repeated run() method