Refactoring ActsAsParanoic module