Revert "AbstractPlatform was removed"

This reverts commit 8ebd5ed9ebd8f0fbd261c1e3ed5fa18179be5d4f.