Biosynthesis-inspired deracemizative production of d-luciferin by combining luciferase and thioesterase.