Outsourcing core code

Hello everybody,
Is it possible to outsource part of the code locally? I want to edit and extend parts of the code from the folder ‘lib/private/Settings/’.

Is there a way to safely save certain parts?

I hope the problem is clearly described.

Best regards
gomeZ