remove shared code