I found this in my garage after taring some walls down. It looks like someone ran an electrical cable from the attic (spliced off the kitchen lights) to some electrical outlets on the wall to the right. What would be the best way to deal with this to make it up to code and safe? I'd like to maintain power to the outlets if possible. Thanks in advance.