Split target dependent test portions to target-specific directories.