This is a real quickie. We’ve been pulling things apart and running some new wiring especially when we see things like this
This is illegal, i.e not to code. Its dangerous, and seeing as it was up inside the ceiling its impossible to get to unless you want to destroy your walls/ceilings. This is a situation we address by simply allowing a fully qualified professional electrician do it properly.