How to replace common parts?