Moved getItem method from Constants to MainHub