OSD-ErasureCodePlugin: refactor BPC code
TEST-ErasureCodePlugin: refactor BPC test