purification of magic, services & controllers as pure ruby objects