Refactor materials pack based on sensors plugin.