Refactoring Facebook and Twitter