Factorizing Codes and Krasner Factorizations