The code that makes up WordPress is not the most valuable asset. Maybe in the beginning it was, but in the last 20 years, polls and surveys have indicated that the Community and the Third-party ecosystem are among the top reasons for using it. 

Lose those two, lose WordPress.