Library abstraction layer for framework agnostic domain logic