move shared resource parts to common module

cc @jmatth