Refactor magic methods implementation in various managers.

Closes #62.