Refactoring PlayBarEngine