core: Rummikub: Extract method and prepare to change api."