BS [Refactor]: Split source and tests into multiple parts.