Question: what is the best choice to reuse your written code?
Answer: Keep the code DRY. ...  Make a class/method do just one thing. Write unit tests for your classes AND make it easy to test classes. Remove the business logic or main code away from any framework code. Try to think more abstractly and use Interfaces and Abstract classes.