Revert "Readd magic"

This reverts commit 80b3e58731d7cf5f702847e0a6d2cd03673e9c48.