Best practices for handling external libraries